package com.chapter_5;

/**
 * @Author: Timo
 * @Date: 2019/5/15 16:39
 * @Description: 类用途：
 */
public class Main {
    public static void main(String[] args){
        // 创建一个能放置3个蛋糕的桌子
        Table table = new Table(3);

        new MakerThread("MakerThread-1", table, 31415).start();
        new MakerThread("MakerThread-2", table, 92653).start();
        new MakerThread("MakerThread-3", table, 58979).start();

        new EaterThread("EaterThread-1", table, 32384).start();
        new EaterThread("EaterThread-2", table, 62643).start();
        new EaterThread("EaterThread-3", table, 38327).start();
    }
}
